package com.unisedu.pay.service;

import com.unisedu.pay.dao.BaseDao;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

public class BaseService<E,D extends BaseDao<E>> {

    @Autowired
    protected D dao;

    E getById(Integer id){
        return dao.getById(id);
    }

    List<E> getList(E e){
        return dao.getList(e);
    }

}
